(function (cjs, an) {

var p; // shortcut to reference prototypes
var lib={};var ss={};var img={};
lib.ssMetadata = [
		{name:"mario_atlas_", frames: [[0,0,700,400],[426,524,58,59],[433,463,59,59],[366,477,58,59],[433,402,59,59],[60,538,58,59],[486,524,58,59],[0,477,59,59],[180,538,58,59],[305,477,59,59],[360,538,58,59],[120,538,58,59],[122,477,59,59],[494,463,58,59],[183,477,59,59],[240,538,58,59],[494,402,58,59],[244,477,59,59],[0,538,58,59],[61,477,59,59],[300,538,58,59],[546,524,36,48],[0,402,431,73],[420,585,24,32],[554,470,28,30],[554,436,32,32],[554,402,34,32],[546,574,26,32]]}
];


// symbols:



(lib.bg = function() {
	this.initialize(ss["mario_atlas_"]);
	this.gotoAndStop(0);
}).prototype = p = new cjs.Sprite();



(lib.c02 = function() {
	this.initialize(ss["mario_atlas_"]);
	this.gotoAndStop(1);
}).prototype = p = new cjs.Sprite();



(lib.c03 = function() {
	this.initialize(ss["mario_atlas_"]);
	this.gotoAndStop(2);
}).prototype = p = new cjs.Sprite();



(lib.c04 = function() {
	this.initialize(ss["mario_atlas_"]);
	this.gotoAndStop(3);
}).prototype = p = new cjs.Sprite();



(lib.c05 = function() {
	this.initialize(ss["mario_atlas_"]);
	this.gotoAndStop(4);
}).prototype = p = new cjs.Sprite();



(lib.c06 = function() {
	this.initialize(ss["mario_atlas_"]);
	this.gotoAndStop(5);
}).prototype = p = new cjs.Sprite();



(lib.c07 = function() {
	this.initialize(ss["mario_atlas_"]);
	this.gotoAndStop(6);
}).prototype = p = new cjs.Sprite();



(lib.c08 = function() {
	this.initialize(ss["mario_atlas_"]);
	this.gotoAndStop(7);
}).prototype = p = new cjs.Sprite();



(lib.c09 = function() {
	this.initialize(ss["mario_atlas_"]);
	this.gotoAndStop(8);
}).prototype = p = new cjs.Sprite();



(lib.c10 = function() {
	this.initialize(ss["mario_atlas_"]);
	this.gotoAndStop(9);
}).prototype = p = new cjs.Sprite();



(lib.c11 = function() {
	this.initialize(ss["mario_atlas_"]);
	this.gotoAndStop(10);
}).prototype = p = new cjs.Sprite();



(lib.c12 = function() {
	this.initialize(ss["mario_atlas_"]);
	this.gotoAndStop(11);
}).prototype = p = new cjs.Sprite();



(lib.c13 = function() {
	this.initialize(ss["mario_atlas_"]);
	this.gotoAndStop(12);
}).prototype = p = new cjs.Sprite();



(lib.c14 = function() {
	this.initialize(ss["mario_atlas_"]);
	this.gotoAndStop(13);
}).prototype = p = new cjs.Sprite();



(lib.c15 = function() {
	this.initialize(ss["mario_atlas_"]);
	this.gotoAndStop(14);
}).prototype = p = new cjs.Sprite();



(lib.c16 = function() {
	this.initialize(ss["mario_atlas_"]);
	this.gotoAndStop(15);
}).prototype = p = new cjs.Sprite();



(lib.c17 = function() {
	this.initialize(ss["mario_atlas_"]);
	this.gotoAndStop(16);
}).prototype = p = new cjs.Sprite();



(lib.c18 = function() {
	this.initialize(ss["mario_atlas_"]);
	this.gotoAndStop(17);
}).prototype = p = new cjs.Sprite();



(lib.c19 = function() {
	this.initialize(ss["mario_atlas_"]);
	this.gotoAndStop(18);
}).prototype = p = new cjs.Sprite();



(lib.c20 = function() {
	this.initialize(ss["mario_atlas_"]);
	this.gotoAndStop(19);
}).prototype = p = new cjs.Sprite();



(lib.c21 = function() {
	this.initialize(ss["mario_atlas_"]);
	this.gotoAndStop(20);
}).prototype = p = new cjs.Sprite();



(lib.coin = function() {
	this.initialize(ss["mario_atlas_"]);
	this.gotoAndStop(21);
}).prototype = p = new cjs.Sprite();



(lib.footer = function() {
	this.initialize(ss["mario_atlas_"]);
	this.gotoAndStop(22);
}).prototype = p = new cjs.Sprite();



(lib.run1 = function() {
	this.initialize(ss["mario_atlas_"]);
	this.gotoAndStop(23);
}).prototype = p = new cjs.Sprite();



(lib.run2 = function() {
	this.initialize(ss["mario_atlas_"]);
	this.gotoAndStop(24);
}).prototype = p = new cjs.Sprite();



(lib.run3 = function() {
	this.initialize(ss["mario_atlas_"]);
	this.gotoAndStop(25);
}).prototype = p = new cjs.Sprite();



(lib.run4 = function() {
	this.initialize(ss["mario_atlas_"]);
	this.gotoAndStop(26);
}).prototype = p = new cjs.Sprite();



(lib.stop = function() {
	this.initialize(ss["mario_atlas_"]);
	this.gotoAndStop(27);
}).prototype = p = new cjs.Sprite();
// helper functions:

function mc_symbol_clone() {
	var clone = this._cloneProps(new this.constructor(this.mode, this.startPosition, this.loop));
	clone.gotoAndStop(this.currentFrame);
	clone.paused = this.paused;
	clone.framerate = this.framerate;
	return clone;
}

function getMCSymbolPrototype(symbol, nominalBounds, frameBounds) {
	var prototype = cjs.extend(symbol, cjs.MovieClip);
	prototype.clone = mc_symbol_clone;
	prototype.nominalBounds = nominalBounds;
	prototype.frameBounds = frameBounds;
	return prototype;
	}


(lib.Gamer_mario = function(mode,startPosition,loop) {
	this.initialize(mode,startPosition,loop,{});

	// mario
	this.instance = new lib.stop();
	this.instance.parent = this;
	this.instance.setTransform(-11,-19);

	this.instance_1 = new lib.run1();
	this.instance_1.parent = this;
	this.instance_1.setTransform(-10,-19);

	this.instance_2 = new lib.run2();
	this.instance_2.parent = this;
	this.instance_2.setTransform(-12,-17);

	this.instance_3 = new lib.run3();
	this.instance_3.parent = this;
	this.instance_3.setTransform(-14,-19);

	this.instance_4 = new lib.run4();
	this.instance_4.parent = this;
	this.instance_4.setTransform(-15,-19);

	this.instance_5 = new lib.c02();
	this.instance_5.parent = this;
	this.instance_5.setTransform(-28,-46);

	this.instance_6 = new lib.c03();
	this.instance_6.parent = this;
	this.instance_6.setTransform(-28,-46);

	this.instance_7 = new lib.c04();
	this.instance_7.parent = this;
	this.instance_7.setTransform(-28,-46);

	this.instance_8 = new lib.c05();
	this.instance_8.parent = this;
	this.instance_8.setTransform(-28,-46);

	this.instance_9 = new lib.c06();
	this.instance_9.parent = this;
	this.instance_9.setTransform(-28,-46);

	this.instance_10 = new lib.c07();
	this.instance_10.parent = this;
	this.instance_10.setTransform(-28,-46);

	this.instance_11 = new lib.c08();
	this.instance_11.parent = this;
	this.instance_11.setTransform(-28,-46);

	this.instance_12 = new lib.c09();
	this.instance_12.parent = this;
	this.instance_12.setTransform(-28,-46);

	this.instance_13 = new lib.c10();
	this.instance_13.parent = this;
	this.instance_13.setTransform(-28,-46);

	this.instance_14 = new lib.c11();
	this.instance_14.parent = this;
	this.instance_14.setTransform(-28,-46);

	this.instance_15 = new lib.c12();
	this.instance_15.parent = this;
	this.instance_15.setTransform(-28,-46);

	this.instance_16 = new lib.c13();
	this.instance_16.parent = this;
	this.instance_16.setTransform(-28,-46);

	this.instance_17 = new lib.c14();
	this.instance_17.parent = this;
	this.instance_17.setTransform(-28,-46);

	this.instance_18 = new lib.c15();
	this.instance_18.parent = this;
	this.instance_18.setTransform(-28,-46);

	this.instance_19 = new lib.c16();
	this.instance_19.parent = this;
	this.instance_19.setTransform(-28,-46);

	this.instance_20 = new lib.c17();
	this.instance_20.parent = this;
	this.instance_20.setTransform(-28,-46);

	this.instance_21 = new lib.c18();
	this.instance_21.parent = this;
	this.instance_21.setTransform(-28,-46);

	this.instance_22 = new lib.c19();
	this.instance_22.parent = this;
	this.instance_22.setTransform(-28,-46);

	this.instance_23 = new lib.c20();
	this.instance_23.parent = this;
	this.instance_23.setTransform(-28,-46);

	this.instance_24 = new lib.c21();
	this.instance_24.parent = this;
	this.instance_24.setTransform(-28,-46);

	this.timeline.addTween(cjs.Tween.get({}).to({state:[{t:this.instance}]}).to({state:[{t:this.instance_1}]},1).to({state:[{t:this.instance_2}]},1).to({state:[{t:this.instance_3}]},1).to({state:[{t:this.instance_4}]},1).to({state:[{t:this.instance_3}]},1).to({state:[{t:this.instance_2}]},1).to({state:[{t:this.instance_5}]},1).to({state:[{t:this.instance_6}]},1).to({state:[{t:this.instance_7}]},1).to({state:[{t:this.instance_8}]},1).to({state:[{t:this.instance_9}]},1).to({state:[{t:this.instance_10}]},1).to({state:[{t:this.instance_11}]},1).to({state:[{t:this.instance_12}]},1).to({state:[{t:this.instance_13}]},1).to({state:[{t:this.instance_14}]},1).to({state:[{t:this.instance_15}]},1).to({state:[{t:this.instance_16}]},1).to({state:[{t:this.instance_17}]},1).to({state:[{t:this.instance_18}]},1).to({state:[{t:this.instance_19}]},1).to({state:[{t:this.instance_20}]},1).to({state:[{t:this.instance_21}]},1).to({state:[{t:this.instance_22}]},1).to({state:[{t:this.instance_23}]},1).to({state:[{t:this.instance_24}]},1).to({state:[]},1).wait(1));

}).prototype = p = new cjs.MovieClip();


(lib.footer_图层_1 = function(mode,startPosition,loop) {
	this.initialize(mode,startPosition,loop,{});

	// 图层_1
	this.instance = new lib.footer();
	this.instance.parent = this;
	this.instance.setTransform(-350.5,-36.5,1.6264,1);

	this.timeline.addTween(cjs.Tween.get(this.instance).wait(1));

}).prototype = getMCSymbolPrototype(lib.footer_图层_1, null, null);


(lib.Coin_图层_1 = function(mode,startPosition,loop) {
	this.initialize(mode,startPosition,loop,{});

	// 图层_1
	this.instance = new lib.coin();
	this.instance.parent = this;
	this.instance.setTransform(-18,-24);

	this.timeline.addTween(cjs.Tween.get(this.instance).wait(1));

}).prototype = getMCSymbolPrototype(lib.Coin_图层_1, null, null);


(lib.场景_1_work = function(mode,startPosition,loop) {
	this.initialize(mode,startPosition,loop,{});

	// work
	this.instance = new lib.bg();
	this.instance.parent = this;

	this.timeline.addTween(cjs.Tween.get(this.instance).wait(1));

}).prototype = getMCSymbolPrototype(lib.场景_1_work, null, null);


(lib.Gamer = function(mode,startPosition,loop) {
	this.initialize(mode,startPosition,loop,{stop:0,run:1,boom:7});

	// timeline functions:
	this.frame_0 = function() {
		this.stop();
	}
	this.frame_6 = function() {
		this.gotoAndPlay('run')
	}
	this.frame_27 = function() {
		this.___loopingOver___ = true;
		this.stop();
	}

	// actions tween:
	this.timeline.addTween(cjs.Tween.get(this).call(this.frame_0).wait(6).call(this.frame_6).wait(21).call(this.frame_27).wait(1));

	// mario_obj_
	this.mario = new lib.Gamer_mario();
	this.mario.name = "mario";
	this.mario.parent = this;
	this.mario.setTransform(2,-3,1,1,0,0,0,2,-3);
	this.mario.depth = 0;
	this.mario.isAttachedToCamera = 0
	this.mario.isAttachedToMask = 0
	this.mario.layerDepth = 0
	this.mario.layerIndex = 0
	this.mario.maskLayerName = 0

	this.timeline.addTween(cjs.Tween.get(this.mario).wait(28));

}).prototype = p = new cjs.MovieClip();
p.nominalBounds = new cjs.Rectangle(-28,-46,59,59);


(lib.footer_1 = function(mode,startPosition,loop) {
	this.initialize(mode,startPosition,loop,{});

	// 图层_1_obj_
	this.图层_1 = new lib.footer_图层_1();
	this.图层_1.name = "图层_1";
	this.图层_1.parent = this;
	this.图层_1.depth = 0;
	this.图层_1.isAttachedToCamera = 0
	this.图层_1.isAttachedToMask = 0
	this.图层_1.layerDepth = 0
	this.图层_1.layerIndex = 0
	this.图层_1.maskLayerName = 0

	this.timeline.addTween(cjs.Tween.get(this.图层_1).wait(1));

}).prototype = getMCSymbolPrototype(lib.footer_1, new cjs.Rectangle(-350.5,-36.5,701,73), null);


(lib.Coin = function(mode,startPosition,loop) {
	this.initialize(mode,startPosition,loop,{});

	// 图层_1_obj_
	this.图层_1 = new lib.Coin_图层_1();
	this.图层_1.name = "图层_1";
	this.图层_1.parent = this;
	this.图层_1.depth = 0;
	this.图层_1.isAttachedToCamera = 0
	this.图层_1.isAttachedToMask = 0
	this.图层_1.layerDepth = 0
	this.图层_1.layerIndex = 0
	this.图层_1.maskLayerName = 0

	this.timeline.addTween(cjs.Tween.get(this.图层_1).wait(1));

}).prototype = getMCSymbolPrototype(lib.Coin, new cjs.Rectangle(-18,-24,36,48), null);


(lib.场景_1_footer = function(mode,startPosition,loop) {
	this.initialize(mode,startPosition,loop,{});

	// footer
	this.instance = new lib.footer_1();
	this.instance.parent = this;
	this.instance.setTransform(350.5,392.5);

	this.timeline.addTween(cjs.Tween.get(this.instance).wait(1));

}).prototype = getMCSymbolPrototype(lib.场景_1_footer, null, null);


// stage content:
(lib.mario = function(mode,startPosition,loop) {
	this.initialize(mode,startPosition,loop,{});

	this.___GetDepth___ = function(obj) {
		var depth = obj.depth;
		var cameraObj = this.___camera___instance;
		if(cameraObj && cameraObj.depth && obj.isAttachedToCamera)
		{
			depth += depth + cameraObj.depth;
		}
		return depth;
		}
	this.___needSorting___ = function() {
		for (var i = 0; i < this.getNumChildren() - 1; i++)
		{
			var prevDepth = this.___GetDepth___(this.getChildAt(i));
			var nextDepth = this.___GetDepth___(this.getChildAt(i + 1));
			if (prevDepth < nextDepth)
				return true;
		}
		return false;
	}
	this.___sortFunction___ = function(obj1, obj2) {
		return (this.exportRoot.___GetDepth___(obj2) - this.exportRoot.___GetDepth___(obj1));
	}
	this.on('tick', function (event){
		var curTimeline = event.currentTarget;
		if (curTimeline.___needSorting___()){
			this.sortChildren(curTimeline.___sortFunction___);
		}
	});

	// footer_obj_
	this.footer = new lib.场景_1_footer();
	this.footer.name = "footer";
	this.footer.parent = this;
	this.footer.setTransform(350.5,392.5,1,1,0,0,0,350.5,392.5);
	this.footer.depth = 0;
	this.footer.isAttachedToCamera = 0
	this.footer.isAttachedToMask = 0
	this.footer.layerDepth = 0
	this.footer.layerIndex = 0
	this.footer.maskLayerName = 0

	this.timeline.addTween(cjs.Tween.get(this.footer).wait(1));

	// work_obj_
	this.work = new lib.场景_1_work();
	this.work.name = "work";
	this.work.parent = this;
	this.work.setTransform(350,200,1,1,0,0,0,350,200);
	this.work.depth = 0;
	this.work.isAttachedToCamera = 0
	this.work.isAttachedToMask = 0
	this.work.layerDepth = 0
	this.work.layerIndex = 1
	this.work.maskLayerName = 0

	this.timeline.addTween(cjs.Tween.get(this.work).wait(1));

}).prototype = p = new cjs.MovieClip();
p.nominalBounds = new cjs.Rectangle(350,200,351,229);
// library properties:
lib.properties = {
	id: '3E43E8665373C141A254E036C6BA9686',
	width: 700,
	height: 400,
	fps: 60,
	color: "#FFFFFF",
	opacity: 1.00,
	manifest: [
		{src:"images/mario_atlas_.png?1590314639662", id:"mario_atlas_"}
	],
	preloads: []
};



// bootstrap callback support:

(lib.Stage = function(canvas) {
	createjs.Stage.call(this, canvas);
}).prototype = p = new createjs.Stage();

p.setAutoPlay = function(autoPlay) {
	this.tickEnabled = autoPlay;
}
p.play = function() { this.tickEnabled = true; this.getChildAt(0).gotoAndPlay(this.getTimelinePosition()) }
p.stop = function(ms) { if(ms) this.seek(ms); this.tickEnabled = false; }
p.seek = function(ms) { this.tickEnabled = true; this.getChildAt(0).gotoAndStop(lib.properties.fps * ms / 1000); }
p.getDuration = function() { return this.getChildAt(0).totalFrames / lib.properties.fps * 1000; }

p.getTimelinePosition = function() { return this.getChildAt(0).currentFrame / lib.properties.fps * 1000; }

an.bootcompsLoaded = an.bootcompsLoaded || [];
if(!an.bootstrapListeners) {
	an.bootstrapListeners=[];
}

an.bootstrapCallback=function(fnCallback) {
	an.bootstrapListeners.push(fnCallback);
	if(an.bootcompsLoaded.length > 0) {
		for(var i=0; i<an.bootcompsLoaded.length; ++i) {
			fnCallback(an.bootcompsLoaded[i]);
		}
	}
};

an.compositions = an.compositions || {};
an.compositions['3E43E8665373C141A254E036C6BA9686'] = {
	getStage: function() { return exportRoot.getStage(); },
	getLibrary: function() { return lib; },
	getSpriteSheet: function() { return ss; },
	getImages: function() { return img; }
};

an.compositionLoaded = function(id) {
	an.bootcompsLoaded.push(id);
	for(var j=0; j<an.bootstrapListeners.length; j++) {
		an.bootstrapListeners[j](id);
	}
}

an.getComposition = function(id) {
	return an.compositions[id];
}


// Layer depth API : 

AdobeAn.Layer = new function() {
	this.getLayerZDepth = function(timeline, layerName)
	{
		if(layerName === "Camera")
		layerName = "___camera___instance";
		var script = "if(timeline." + layerName + ") timeline." + layerName + ".depth; else 0;";
		return eval(script);
	}
	this.setLayerZDepth = function(timeline, layerName, zDepth)
	{
		const MAX_zDepth = 10000;
		const MIN_zDepth = -5000;
		if(zDepth > MAX_zDepth)
			zDepth = MAX_zDepth;
		else if(zDepth < MIN_zDepth)
			zDepth = MIN_zDepth;
		if(layerName === "Camera")
		layerName = "___camera___instance";
		var script = "if(timeline." + layerName + ") timeline." + layerName + ".depth = " + zDepth + ";";
		eval(script);
	}
	this.removeLayer = function(timeline, layerName)
	{
		if(layerName === "Camera")
		layerName = "___camera___instance";
		var script = "if(timeline." + layerName + ") timeline.removeChild(timeline." + layerName + ");";
		eval(script);
	}
	this.addNewLayer = function(timeline, layerName, zDepth)
	{
		if(layerName === "Camera")
		layerName = "___camera___instance";
		zDepth = typeof zDepth !== 'undefined' ? zDepth : 0;
		var layer = new createjs.MovieClip();
		layer.name = layerName;
		layer.depth = zDepth;
		layer.layerIndex = 0;
		timeline.addChild(layer);
	}
}


})(createjs = createjs||{}, AdobeAn = AdobeAn||{});
var createjs, AdobeAn;